package javaScript 
{
	/**
	 * JS
	 * @author cain in liontravel 2010
	 */
	public class JSScripts
	{
		/**
		 * 跳出訊息
		 */
		public static var alert:XML = new XML
		(
			<script>
				<![CDATA[
					function(pMsg) {
						alert(pMsg);
					}
				]]>
			</script>
		);	
		/**
		 * 開啟視窗
		 */
		public static var windowOpen:XML = new XML
		(
				<script>
					<![CDATA[
						function(pURL , nn , pWidth , pHeight) {
							window.open(pURL, nn , 'width=' + pWidth + ',height=' + pHeight);					
						}
					]]>
				</script>
		);
		/**
		 * 重新整理
		 */
		public static var reload:XML = new XML
		(
				<script>
					<![CDATA[
						function(){
							window.location.reload();
						}
					]]>
				</script>
		);
	}
}